import request from '@/utils/request'

// 查看优质服务商
export function getQualityServiceProvider(pageNum, pageSize) {
    console.log("@/api/lawOffice.js");
    console.log("getQualityServiceProvider(" + pageNum + ", " + pageSize + ")");
    return request({
        url: "/lawServicePlatform/getQualityServiceProvider?pageNum=" + pageNum + "&pageSize=" + pageSize,
        method: 'post',
    })
}

// 根据id查询服务商
export function selectServiceProviderById(id) {
    return request({
        url: "/lawServicePlatform/selectServiceProviderById?id=" + id,
        method: 'post',
    })
}

// 通过地点查看优质服务商
export function getQualityServiceProviderByLocation(location, pageNum, pageSize) {
    return request({
        url: "/lawServicePlatform/getQualityServiceProviderByLocation?location=" + location + "&pageNum=" + pageNum + "&pageSize=" + pageSize,
        method: 'post',
    })
}